
<div class="kontent_box">
    <div class="kontent_panel">
        <div class="reg_input">
        <div><h3>Edit Akun Admin</h3></div>
        <?php $data = $data_admin->result(); ?>
        <table>
            <?php echo form_open_multipart('admin/edit'); ?>
            <tr>
                <td id="text_" style="width: 200px;">Username*</td>
                <td ><input  type="text" name="username" value="<?php echo $data[0]->ADMIN_USERNAME; ?>" /></td>
                <td class="eror_td"><?php echo form_error('nama'); ?></td>
            </tr>
            <tr>
                <td id="text_">Email*</td>
                <td><input  type="text" name="email" value="<?php echo $data[0]->ADMIN_EMAIL; ?>" /></td>
                <td class="eror_td"><?php echo form_error('email'); ?></td>
            </tr>
            <tr>
                <td id="text_">No. HP*</td>
                <td><input  type="text" name="nohp" value="<?php echo $data[0]->ADMIN_NO_HP; ?>" /></td>
                <td class="eror_td"><?php echo form_error('nohp'); ?></td>
            </tr>

            <tr>
                <td id="text_">Alamat*</td>
                <td><textarea  type="text" name="alamat" value="" ><?php echo $data[0]->ADMIN_ALAMAT; ?></textarea></td>
                <td class="eror_td"><?php echo form_error('alamat'); ?></td>
            </tr>        
            <tr>
                <td>Foto</td>
                <td><img style="width: 250px" src="<?php echo base_url() ?>/static/images/admin/photo/<?php echo $data[0]->ADMIN_FOTO; ?>"/></td>
                <td class="eror_td"></td>
            </tr>
            <tr>
                <td></td>
                <td><input style="width: 250px" type="file" name="userfile"/></td>
                <td class="eror_td"></td>
            </tr>
            <tr>
                <td></td>
                <td><input  type="submit" value="Ubah Data"/></td>
                <td class="eror_td"></td>
            </tr>
        <?php form_close() ?>
        </table>
        </div>
    </div>


